<html xmlns="http://www.w3.org/1999/xhtml" data-dpr="1" style="font-size: 54px;">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta name="renderer" content="webkit" /> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <meta name="format-detection" content="telphone=no, email=no" /> 
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
  <title>超级搜索 - 全网精选优惠券</title> 
  <meta name="keywords" content="" /> 
  <meta name="description" content="" /> 
<script type="text/javascript" src="__STATIC__/js/jquery.js" /></script>
<script type="text/javascript" src="__STATIC__/itaoke/super/eniu.js"></script>
<script type="text/javascript" src="__STATIC__/itaoke/super/layer_mobile/layer.js"></script>
  <script src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
    if(navigator.appName == 'Microsoft Internet Explorer'){
		if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
			alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
		}
	}
	// jssdk config 对象
	jssdkconfig = null || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem'
	];
</script>
<link href="__STATIC__/itaoke/super/eniu.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/itaoke/super/iconfont.css" rel="stylesheet" type="text/css">
<style>
.topdh{
animation: clipAni 0.5s;
-moz-animation: clipAni 0.5s;	/* Firefox */
-webkit-animation: clipAni 0.5s;	/* Safari 和 Chrome */
-o-animation: clipAni 0.5s;	/* Opera */
}
@keyframes clipAni
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(40px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-moz-keyframes clipAni /* Firefox */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(40px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-webkit-keyframes clipAni /* Safari 和 Chrome */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(40px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-o-keyframes clipAni /* Opera */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(40px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}
.topdh2{
animation: clipAni 0.8s;
-moz-animation: clipAni 0.8s;	/* Firefox */
-webkit-animation: clipAni 0.8s;	/* Safari 和 Chrome */
-o-animation: clipAni 0.8s;	/* Opera */
}
@keyframes clipAni
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(30px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-moz-keyframes clipAni /* Firefox */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(30px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-webkit-keyframes clipAni /* Safari 和 Chrome */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(30px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-o-keyframes clipAni /* Opera */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(30px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}
.topdh3{
animation: clipAni 1s;
-moz-animation: clipAni 1s;	/* Firefox */
-webkit-animation: clipAni 1s;	/* Safari 和 Chrome */
-o-animation: clipAni 1s;	/* Opera */
}
@keyframes clipAni
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(20px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-moz-keyframes clipAni /* Firefox */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(20px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-webkit-keyframes clipAni /* Safari 和 Chrome */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(20px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}

@-o-keyframes clipAni /* Opera */
{
    0% {
		opacity: 0;
		-webkit-transform: translateX(20px);
	}	
	100% {
		opacity: 1;
		-webkit-transform: translateX(0);
	}
}
</style>
</head> 
 <body style="font-size: 12px;"> 

  <div id="wrap_list" style="display: block;"> 
   <div class="search" style="position:fixed;top:0px;z-index:999;"> 
    <div class="search-box"> 
     <form id="search-form" action="{:U('Super/search')}" method="get" onsubmit="return checkForm(this);">
			<span class="search-icon"></span> 
      <input class="search-ipt" type="text" name="keyword" value="{$keyword}" id="J_QueryVal" placeholder="请输入关键词.." /> 
      <button class="search-reset f16" type="button">&times;</button>
    </div>
	</form> 
    <span class="search-cancel f14">返回</span> 
   </div>

<div class="results" style="padding-top:2.02rem;"> 
<ul id="allitem-panel" page="{$p}">
<li id="top" style="padding: 4px 0px 2px 0px; margin: 5px 2px;border: 2px dashed #f80;display:none" class="topdh"></li>
</ul>
<ul id="allitem-panel2">
</ul>
</div> 
</div>
      
      <div class="q-list-more f14" id="nbsobot_index" style="display:none;">
        <span class="load-more"><a href="javascript:" onclick="getitem_allhd($('#J_QueryVal').val(),1,'');"><font color="#666">点击加载更多</font></a></span>
        <p class="list-error"></p>
      </div>
	  <div style="height:100px"></div>
<style>
/*新底部*/
#nb-menu {
    position: fixed;
    bottom: 0;
    border-top: #f0f0f0 1px solid;
    background: #fff;
    z-index: 99999;
    width: 100%;
	max-width:540px;
	display:none;
	bottom:0px;
	left:0px;
	right:0px;
	margin:auto;
}

#nb-menu ul {
    display: -webkit-box;
    width: 100%;
	height:46px;
	margin:0 auto;
}

#nb-menu li {
    -webkit-box-flex: 1;
    font-size: 12px;
    padding: 4px 0;
    text-align: center;
    height: 38px;
    line-height: 15px;
    color: #999;
	width:25%;
}

#nb-menu li .font-div {
    color: #999999 !important;
	margin-top:-7px;
}

#nb-menu li .menu-inside {
}

#nb-menu li .menu-inside span {
    display: block;
    margin: 0 auto 3px auto;
    width: 21px;
    height: 21px;
    background-size: contain !important;
}

#nb-menu li .menu-inside i {
    display: block;
    margin: 0 auto 0px auto;
    width: 25px;
    height: 25px;
    font-size: 25px;
	color: #999999;
	padding-top:3px;
	margin-bottom:3px;
    background-size: contain !important;
}
.link-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.nb-relative {
    position: relative;
    top: 0;
    left: 0;
}
.go-top {
    display: block;
    width: 42px;
    height: 42px;
    position: fixed;
    right: 20px;
    bottom: 64px;
    z-index: 10000;
    background-image: url('__STATIC__/itaoke/super/go_top.png');
    background-size: contain;
    opacity: 0;
    -webkit-transition: bottom .8s ease, opacity .6s ease;
}
.top-button-show {
    bottom: 54px;
    opacity: 1;
}
.top-button-hide {
    bottom: -54px;
    opacity: 0;
}
.go-top span {
    position: absolute;
    bottom: 9px;
    width: 100%;
    display: block;
    height: 12px;
    line-height: 12px;
    text-align: center;
    font-size: 10px;
    color: #333;
}
.result-img{
    position: relative;
    float: left;
    padding: .06533rem 0rem;
    width: 2.9rem;
    height: 2.9133rem;
    border-bottom: 1px #e5e5e5 solid;
    color: #999;
	background:#fff;
}
.result-img img {
    width: 2.88rem;
    height: 2.88rem;
    vertical-align: middle;

}
.result-desc {
    position: relative;
    float: right;
    padding: .06533rem .24rem .06533rem .1rem;
    width: 6.74rem;
    height: 2.9133rem;
    border-bottom: 1px #e5e5e5 solid;
    color: #999;
	background:#fff;
}
</style>

<div class="backTop" onclick="gotop();">
<div class="go-top top-button-hide">
<span>顶部</span>
</div>
</div>

<script>
function gotop(){
setTimeout('$("html,body").animate({scrollTop:$(".results").offset().top},500);',500);
$(".go-top").addClass("top-button-hide").removeClass("top-button-show");
}
   window.addEventListener("scroll", function (event) {
        if (document.body.scrollTop > 500) {
            $(".go-top").removeClass("top-button-hide").addClass("top-button-show");
			$("#nb-menu").fadeIn(300);
        } else {
            $(".go-top").addClass("top-button-hide").removeClass("top-button-show");
			$("#nb-menu").fadeOut(300);
        }
    });
</script>

<script>
$(function() {
$(document).delegate("a", "click", function (e) {
        if ($(this).hasClass("new-coupon")) return;
        var url = $(this).attr("href");
        if($("#allitem-panel").length == 0) return;
        window.localStorage.setItem("top_so", document.body.scrollTop);
        window.localStorage.setItem("html_so", $("#allitem-panel").parent().html());
        window.localStorage.setItem("url_so", window.location.href);
    });
    if(window.localStorage.getItem("url_so") == window.location.href && window.localStorage.getItem("top_so") != "null") {
        $("#allitem-panel").parent().html(window.localStorage.getItem("html_so"));
        document.body.scrollTop = window.localStorage.getItem("top_so");
        window.localStorage.setItem("top_so", "null");
        window.localStorage.setItem("html_so", "null");
    }
});
</script>
<script type="text/javascript">
  function checkForm (obj) {
    var val = $.trim($('.search-ipt').val()), err = '';
    if (/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/g.test(val)) {
      err = '粘贴商品标题试试~（链接地址不支持）！';
    }
    if (val == '') {
      err = '搜索内容不能为空！';
    }
    if (err) {
      layer.open({
    content: err
    ,btn: ['我知道了','返回首页']
	//,shadeClose:false
	,no: function(){
		window.location.href = '{:U('Super/index')}';
     } 
    });
    }
    return !err;
  }
  $('.search-reset').on('click', function () {
    $('.search-ipt').val('');
  });
  $('.search-cancel').on('click', function () {
    window.location.href = '{:U('Super/index')}';
  })
  $('.sstop').click(function () {
    var url = $(this).attr('data-info');
    window.location.href = url;
  });

var keyword = "{$keyword}";
if(keyword)	getitem(keyword);
function getitem(keyword) {
    var nbre = '';
	var apiurl = "/index.php?c=super&a=apiSearch&keyword="+keyword;
    layer.open({
    type: 2
    ,content: '搜索中请稍后'
	,shadeClose:false
	,success: function(index){}
    });
	$.ajax({
        url: apiurl,
        dataType: 'json',
        jsonp: 'callback',
        success: function(result) {
			if (result.data.count == 0) {
				nbre = 0;
		    }
		 
	    	if (result.data.status == 1) {
			    nbre = 1;
                var len = result.data.count;
                var allinfo = result.data.data;
                var image2 = new Array();
                var itemfee2 = '';
             
				for (var i = 0; i < len; i++) {
					image2[i] = '<li class="topdh2"><div class="result-img"><img src="' + allinfo[i].pict_url + '" alt="" /></div>'
					+'<div class="result-desc"><h3 class="f14" style="width: auto;">' + allinfo[i].title + '</h3>'
					+'<p class="f13">现价 &yen;<del>' + allinfo[i].zk_final_price + '</del> 已售' + allinfo[i].volume + '件</p>'
					+'<p class="f13">券后价 &yen; <strong class="f16">' + Number(allinfo[i].after_price).toFixed(2) + '</strong></p>'
					+'<p class="f13"><span>券<i>' +parseInt(allinfo[i].coupon_price) + '元</i></span> 剩余' + allinfo[i].coupon_remain_count + '张</p>'
					+'<button type="submit" class="f13 sstop" data-info="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) +'"><a href="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) + '&title='+allinfo[i].title+'&volume='+allinfo[i].volume+'&price='+allinfo[i].zk_final_price+'&after_price='+allinfo[i].after_price+'&pic_url='+allinfo[i].pict_url+'" style="color:#fff">领券购买</a></button>'
					+'</div></li>';
				}
 
                $('#allitem-panel').append(image2);
				//$('#nbsobot_index').show();
            }
        },
		complete: function(result) {
			$('#layui-m-layer0').hide();
			if(nbre == 0 ){
			   layer.open({
				    content: '对不起，没有找到任何优惠！'
				    ,btn: ['继续查看','返回首页']
					,shadeClose:true
					,no: function(){
				  		window.location.href = '{:U('Super/index')}';
				     } 
			    });
			}
		}

		
    })
    
    
}

function getitem_2(keyword,nbre) {
	var apiurl = "/index.php?c=super&a=apiSearch&keyword="+keyword;
	$.ajax({
        url: apiurl,
        dataType: 'json',
        jsonp: 'callback',
        success: function(result) {
		if (result.data.count == 0 && nbre == 0) {
			nbre = 0;
	    }

	    if (result.data.status ==1) {
			    nbre = 1;
                var len = result.data.count;
                var allinfo = result.data.data;
                var image2 = new Array();
                var itemfee2 = '';
				for (var i = 0; i < len; i++) {
					image2[i] = '<li class="topdh2"><div class="result-img"><img src="' + allinfo[i].pict_url + '" alt="" /></div>'
					+'<div class="result-desc"><h3 class="f14" style="width: auto;">' + allinfo[i].title + '</h3>'
					+'<p class="f13">现价 &yen;<del>' + allinfo[i].zk_final_price + '</del> 已售' + allinfo[i].volume + '件</p>'
					+'<p class="f13">券后价 &yen; <strong class="f16">' + Number(allinfo[i].after_price).toFixed(2) + '</strong></p>'
					+'<p class="f13"><span>券<i>' +parseInt(allinfo[i].coupon_price) + '元</i></span> 剩余' + allinfo[i].coupon_remain_count + '张</p>'
					+'<button type="submit" class="f13 sstop" data-info="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) +'"><a href="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) + '&title='+allinfo[i].title+'&volume='+allinfo[i].volume+'&price='+allinfo[i].zk_final_price+'&after_price='+allinfo[i].after_price+'&pic_url='+allinfo[i].pict_url+'" style="color:#fff">领券购买</a></button>'
					+'</div></li>';
				}
                $('#allitem-panel').append(image2);
				if(nbre==1){
					$('#nbsobot').show();
				}else{
					$('#nbsobot').hide();
				}
                
            }
        },
			complete: function(result) {
				getitem_allhd(keyword,nbre,1);
			}
    })
}

function getitem_allhd(keyword,nbre,limit) {
    if(!limit){
		var limit = $("#allitem-panel").attr("page");
		limit++;
	}
	if(!keyword){
		var keyword = $('#J_QueryVal').val();
	}

	var apiurl = "/index.php?c=super&a=apiSearch&keyword="+keyword+"&p="+limit;
	
	$.ajax({
        url: apiurl,
        dataType: 'json',
        jsonp: 'callback',
        success: function(result) {    
		if (result.data.count == 0) {
			nbreend=0;
	    }

	    if (result.data.status == 1) {
	    		nbreend=1;
                var len = result.data.count;
                var allinfo = result.data.data;
                var image2 = new Array();
                var itemfee2 = '';

				for (var i = 0; i < len; i++) {
					image2[i] = '<li class="topdh2"><div class="result-img"><img src="' + allinfo[i].pict_url + '" alt="" /></div>'
					+'<div class="result-desc"><h3 class="f14" style="width: auto;">' + allinfo[i].title + '</h3>'
					+'<p class="f13">现价 &yen;<del>' + allinfo[i].zk_final_price + '</del> 已售' + allinfo[i].volume + '件</p>'
					+'<p class="f13">券后价 &yen; <strong class="f16">' + Number(allinfo[i].after_price).toFixed(2) + '</strong></p>'
					+'<p class="f13"><span>券<i>' +parseInt(allinfo[i].coupon_price) + '元</i></span> 剩余' + allinfo[i].coupon_remain_count + '张</p>'
					+'<button type="submit" class="f13 sstop" data-info="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) +'"><a href="/index.php?c=super&a=detail&num_iid=' + allinfo[i].num_iid +'&url='+ encodeURI(allinfo[i].coupon_click_url) + '&title='+allinfo[i].title+'&volume='+allinfo[i].volume+'&price='+allinfo[i].zk_final_price+'&after_price='+allinfo[i].after_price+'&pic_url='+allinfo[i].pict_url+'" style="color:#fff">领券购买</a></button>'
					+'</div></li>';
				}
				
				$('#allitem-panel').append(image2);
				$("#allitem-panel").attr("page", limit);

				limit++;
				if(nbre==1){
					$('#nbsobot').show();
				}else{
					$('#nbsobot').hide();
				}
            }
        },
			complete: function(result) {
			$('#layui-m-layer0').hide();
			$('#layui-m-layer1').hide();
			$('#layui-m-layer2').hide();
			$('#layui-m-layer2').hide();

		   if(nbre == 0 && nbreend == 0){
			   layer.open({
				    content: '对不起，没有找到任何优惠！'
				    ,btn: ['继续查看','返回首页']
					,shadeClose:true
					,no: function(){
				  		window.location.href = '{:U('Super/index')}';
				     } 
			    });
			}
		}
    })
}

//==============自动加载=============
//获取滚动条当前的位置 
function getScrollTop() { 
var scrollTop = 0; 
if (document.documentElement && document.documentElement.scrollTop) { 
scrollTop = document.documentElement.scrollTop; 
} 
else if (document.body) { 
scrollTop = document.body.scrollTop; 
} 
return scrollTop; 
} 

//获取当前可是范围的高度 
function getClientHeight() { 
var clientHeight = 0; 
if (document.body.clientHeight && document.documentElement.clientHeight) { 
clientHeight = Math.min(document.body.clientHeight, document.documentElement.clientHeight); 
} 
else { 
clientHeight = Math.max(document.body.clientHeight, document.documentElement.clientHeight); 
} 
return clientHeight; 
} 

//获取文档完整的高度 
function getScrollHeight() { 
return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); 
} 


$(window).scroll(function () { 
if (getScrollTop() + getClientHeight() == getScrollHeight()) { 
getitem_allhd($('#J_QueryVal').val(),1,'');
} 
});

//==============自动加载============= 
</script>
<script>
$(function() {
wx.config(jssdkconfig);
wx.ready(function () {
wx.hideAllNonBaseMenuItem();
});
});
</script>
</body>
</html>